<!DOCTYPE html>
<html>
<head>
<title>典当品信息</title>
<#include "/header.html" />
    <link href="${request.contextPath}/statics/css/swiper.min.css" rel="stylesheet" type="text/css" />
    <link href="${request.contextPath}/statics/css/style_min.css" rel="stylesheet" type="text/css" />
    <style>
        .stable{border-collapse: collapse;margin-top: 20px; margin-left: 20px}
        .stable tr td{ border:1px solid #6c5500; border-collapse: collapse; line}
        .stable tr td.tbgcolor{ width: 160px; background: #fdf7df; color:#6c5500;line-height: 50px; text-align: center }
        .stable tr td.ttext{ color: #0a8cfd; text-indent:5px; line-height: 50px;}
    </style>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList && !showDetail">
		<div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="名称">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("qyxxddddywnew:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("qyxxddddywnew:update")>
            <a class="btn btn-modify" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("qyxxddddywnew:delete")>
            <a class="btn btn-delete" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">

						            <div class="form-group">
                <div class="col-sm-2 control-label">登记序号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="qyxxDdDdywNew.ddywDjxh" placeholder="登记序号"/>
                </div>
            </div>
						            <div class="form-group">
                <div class="col-sm-2 control-label">企业名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="qyxxDdDdywNew.ddywQymc" placeholder="企业名称"/>
                </div>
            </div>
						            <div class="form-group">
                <div class="col-sm-2 control-label">企业代码</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="qyxxDdDdywNew.ddywQydm" placeholder="企业代码"/>
                </div>
            </div>
						            <div class="form-group">
                <div class="col-sm-2 control-label">当品号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="qyxxDdDdywNew.ddywDph" placeholder="当品号"/>
                </div>
            </div>
						            <div class="form-group">
                <div class="col-sm-2 control-label">业务类型代码</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="qyxxDdDdywNew.ddywYwlxCode" placeholder="业务类型代码"/>
                </div>
            </div>
						            <div class="form-group">
                <div class="col-sm-2 control-label">业务类型</div>
                <div class="col-sm-10">
                    <input type="hidden" class="form-control" v-model="qyxxDdDdywNew.ddywYwlxName" placeholder="业务类型"/>
                    <select class="form-control" v-model="qyxxDdDdywNew.ddywYwlxName">
                        <option v-for="item in ddywYwlxName" v-bind:value="item.value">{{item.text}}</option>
                    </select>
                </div>
            </div>
						            <div class="form-group">
                <div class="col-sm-2 control-label">经办人</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="qyxxDdDdywNew.ddywTbr" placeholder="填表人"/>
                </div>
            </div>

			 <div class="form-group">
                 <div class="col-sm-2 control-label">上传图片</div>
                <div class="col-sm-10">
                     <input type="file" onchange="fileupload(this)" multiple="multiple"  id="file"  class="form-control upimg"   placeholder="上传图片"/>
                     <input type="hidden"  id="furl1"  class="form-control" v-model="qyxxDdDdywNew.upload"  />
                </div>
            </div>

							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

    <div v-show="showDetail" class="panel panel-default">
        <div class="panel-heading titleys">典当信息查询</div>
        <div style="margin:10px 0px 0px;">
            <form class=" m-t" style="padding: 0px !important;">
                  <table width="90%" border="1" class="stable">
                        <tr>
                            <td  class="tbgcolor">企业名称</td>
                            <td  class="ttext">{{qyxxDdDdywNew.ddywQymc}}</td>
                            <td rowspan="15"   class="tbgcolor" style="width: 60px">照片</td>
                            <td rowspan="15" width="30%" >&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">企业代码</td>
                            <td class="ttext">{{qyxxDdDdywNew.ddywQymc}}</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">登记序号</td>
                            <td class="ttext">{{qyxxDdDdywNew.ddywDjxh}}</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">典当人姓名</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">典当人证件号码</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">典当人联系电话</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">经办人</td>
                            <td class="ttext">{{qyxxDdDdywNew.ddywTbr}}</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">业务类型</td>
                            <td class="ttext">{{qyxxDdDdywNew.ddywYwlxName}}</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">名称</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">规格</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">数量</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">估价</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">典当金额</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">备注</td>
                            <td class="ttext">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="tbgcolor">典当日期</td>
                            <td class="ttext">{{qyxxDdDdywNew.createDate}}</td>
                        </tr>
                    </table>
                    <div style="margin:10px 0px 60px;text-align: center">
                        &nbsp;&nbsp;<input type="button" class="btn btn-warning" onClick="javascript:location.reload()" value="返回" />
                    </div>
                </form>
        </div>
    </div>

</div>



<script >

    $(function(){
        $("#ECalendar_date_begin").ECalendar({
            type:"time",   //模式，time: 带时间选择; date: 不带时间选择;
            stamp : false,   //是否转成时间戳，默认true;
            offset:[0,2],   //弹框手动偏移量;
            format:"yyyy-mm-dd hh:ii",   //时间格式 默认 yyyy-mm-dd hh:ii;
            skin:"#0a8cfd",   //皮肤颜色，默认随机，可选值：0-8,或者直接标注颜色值;
            step:10,   //选择时间分钟的精确度;
            callback:function(v,e){

            } //回调函数
        });
        $("#ECalendar_date_end").ECalendar({
            type:"time",   //模式，time: 带时间选择; date: 不带时间选择;
            stamp : false,   //是否转成时间戳，默认true;
            offset:[0,2],   //弹框手动偏移量;
            format:"yyyy-mm-dd hh:ii",   //时间格式 默认 yyyy-mm-dd hh:ii;
            skin:"#0a8cfd",   //皮肤颜色，默认随机，可选值：0-8,或者直接标注颜色值;
            step:10,   //选择时间分钟的精确度;
            callback:function(v,e){

            } //回调函数
        });
    })

</script>
<script src="${request.contextPath}/statics/libs/Ecalendar.jquery.min.js"></script>
<script src="${request.contextPath}/statics/js/modules/ddpin/qyxxddddywnew.js?_${.now?long}"></script>
</body>
</html>